package org.brisling.duties.service;

import org.brisling.docManage.domain.Docdetail;
import org.brisling.docManage.repository.DocdetailRepo;
import org.brisling.duties.service.base.BaseDutiesTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;


@RestController
@RequestMapping("/dutiesdoc")
/**
 * 用戶后台服務service
 * @Author : jackson wang
 * @Date   : 2015年6月8日 下午4:18:01
 * @version: 1.0
 */
public class DutiesDocService extends BaseDutiesTypeService<Docdetail>{
	
	@SuppressWarnings("unused")
	@Autowired
	private DocdetailRepo baseRepo;
	
	public DutiesDocService(){
//		this.moduleName = ConstSysParam.MODULE_DOCDETAIL;
		this.clazz = Docdetail.class;
	}
	
	/**
	 * 获取业务主页面 
	 * @return
	 */
	@RequestMapping("/{bizcode}/mainPage.action")
	public ModelAndView getMainPage(@PathVariable String bizcode){
		this.moduleName = bizcode;
		return getBizMainPage();
	}
	
	/**
	 * 获取业务编辑页面
	 * @return
	 */
	@RequestMapping("/{bizcode}/editPage.action")
	public ModelAndView getEditPage(@PathVariable String bizcode){
		this.moduleName = bizcode;
		return getBizEditPage();
	}	
}
